#include <iostream>
#include <thread>
#include "log.h"

using namespace std;

void func1()
{
    int a = 5;
    while(a > 0) {
        LOGAPP->log("thread 1 log info----");
        a--;
    }
}


void func2()
{
    int a = 5;
    while(a > 0) {
        LOGAPP->log("thread 2 log info----");
        a--;
    }
}

int main()
{
    logger::getInstance()->log("start log info....");

    thread t1(&func1), t2(&func2);
    t1.join();
    t2.join();
    
    logger::getInstance()->log("end log info....");
    
    return 0;
}